package com.itic.ht.user.feedback.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.itic.appbase.framework.common.service.HtCrudService;
import com.itic.ht.user.feedback.persistence.dao.FeedbackDao;
import com.itic.ht.user.feedback.persistence.model.Feedback;
import com.itic.ht.user.feedback.persistence.model.FeedbackExample;


@Service
@Transactional
public class FeedbackService
     extends HtCrudService<FeedbackDao,Feedback,FeedbackExample> {
    @Autowired
    private FeedbackDao feedbackDao;

	public String deltrue(Integer id) {
		int result = feedbackDao.deleteByPrimaryKey(id);
		if(result>0){
			return SUCCESS;
		}else{
			return FAILED;
		}
	}


}